package com.xx.xunyou.service;

import com.xx.xunyou.entity.item.chizhuzaixiang.Chizhuzaixiang;
import com.xx.xunyou.entity.item.chizhuzaixiang.ChizhuzaixiangContent;
import com.xx.xunyou.entity.item.chizhuzaixiang.vo.ChizhuzaixiangVo;

import java.util.List;
import java.util.Map;

/**
 * @author: zhl
 * @Description:
 */
public interface ChizhuzaixiangService {

    /**
     * 查询条数
     * @param map
     * @return
     */
    Integer queryListCountToManager(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Map> queryListToManager(Map<String,Object> map);

    /**
     * 添加
     * @param chizhuzaixiang
     * @param content
     */
    void insert(Chizhuzaixiang chizhuzaixiang, String content);

    /**
     * 通过id查询
     * @param chizhuzaixiangId
     * @return
     */
    Chizhuzaixiang queryByIdToManager(Integer chizhuzaixiangId);

    /**
     * 通过id查询
     * @param chizhuzaixiangId
     * @return
     */
    ChizhuzaixiangContent queryContentByIdToManager(Integer chizhuzaixiangId);

    /**
     * 修改
     * @param chizhuzaixiang
     * @param content
     */
    void update(Chizhuzaixiang chizhuzaixiang, String content);

    /**
     * 删除
     * @param chizhuzaixiangId
     */
    void delete(Integer chizhuzaixiangId);

    /**
     * 推荐
     * @param chizhuzaixiangId
     */
    void recommend(Integer chizhuzaixiangId);

    /**
     * 取消推荐
     * @param chizhuzaixiangId
     */
    void notRecommend(Integer chizhuzaixiangId);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<ChizhuzaixiangVo> queryListToAPPIndex(Map<String,Object> map);

    /**
     * 查询推荐
     * @param map
     * @return
     */
    List<Chizhuzaixiang> querByMapToAPPPageRecommend(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Chizhuzaixiang> querByMapToAPPPage(Map<String,Object> map);

    /**
     * 查询总条数
     * @param map
     * @return
     */
    Integer querByMapToAPPTotal(Map<String,Object> map);
}
